import request from "@/utils/request";

export function getList(params) {
  return request({
    url: "/prod/spec/page",
    method: "get",
    params,
  });
}
// 新增
export function addList(data) {
  return request({
    url: "/prod/spec",
    method: "post",
    data: data,
  });
}
// 编辑
export function editList(data) {
  return request({
    url: "/prod/spec",
    method: "put",
    data: data,
  });
}
// 搜索
export function searchList(params) {
  return request({
    url: "/prod/spec/page",
    method: "get",
    params,
  });
}
// 删除
export function delList(propId) {
  return request({
    url: `/prod/spec/${propId}`,
    method: "delete",
  });
}
